﻿while True:
    f = open('text.txt','w')
    f.write('Hello world,人生苦短，我用Python')
    f.close
# f = open('text.txt','r')
# data = f.read(11)
# print('读取到的内容为:',data)
# data= f.read(5)
# print('读取到的内容为：',data)

